package com.ruoyi.peach.mapper;

import java.util.Date;
import java.util.List;
import com.ruoyi.peach.domain.RecordImg;
import org.apache.ibatis.annotations.Param;

/**
 * 采集记录图片Mapper接口
 * 
 * @author ruoyi
 * @date 2025-10-09
 */
public interface RecordImgMapper 
{
    /**
     * 查询采集记录图片
     * 
     * @param id 采集记录图片主键
     * @return 采集记录图片
     */
    public RecordImg selectRecordImgById(Long id);


    public List<RecordImg> selectRecordImgByrecordId(Long recordId);
    /**
     * 查询采集记录图片列表
     * 
     * @param recordImg 采集记录图片
     * @return 采集记录图片集合
     */
    public List<RecordImg> selectRecordImgList(RecordImg recordImg);

    /**
     * 新增采集记录图片
     * 
     * @param recordImg 采集记录图片
     * @return 结果
     */
    public int insertRecordImg(RecordImg recordImg);

    /**
     * 修改采集记录图片
     * 
     * @param recordImg 采集记录图片
     * @return 结果
     */
    public int updateRecordImg(RecordImg recordImg);

    /**
     * 删除采集记录图片
     * 
     * @param id 采集记录图片主键
     * @return 结果
     */
    public int deleteRecordImgById(Long id);

    /**
     * 批量删除采集记录图片
     * 
     * @param ids 需要删除的数据主键集合
     * @return 结果
     */
    public int deleteRecordImgByIds(Long[] ids);
    public RecordImg selectByRecordIdAndUploadTime(@Param("recordId") Long recordId,
                                            @Param("uploadTime") Date uploadTime);
    public List<RecordImg> selectByRecordId(@Param("recordId") Long recordId);
}
